CC=gcc
top_srcdir = ../..
top_builddir = ../..

INCLUDES_bak = -I$(top_builddir)/include/curl \
 -I$(top_builddir)/include      \
 -I$(top_srcdir)/include        \
 -I$(top_builddir)/lib          \
 -I$(top_srcdir)/lib			\
 -I$(top_srcdir)/tests/libtest

INCLUDES = -I$(top_builddir)/include/curl \
		   -I$(top_builddir)/include      \
           -I$(top_srcdir)/include        \
		   -I$(top_builddir)/lib          \
		   -I$(top_srcdir)/lib 			\
 		   -I$(top_srcdir)/tests/libtest


CFLAGS := -std=gnu99 $(INCLUDES)

LDFLAGS := -L../../lib/.libs/ -lcurl

test-rate:test-rate.o 
	$(CC) -o $@ $(LDFLAGS) $^

.c.o:
	echo $(CFLAGS)
	$(CC) -c $(CFLAGS) -o $@ $^ 

PHONY:clean

clean:
	rm -rf *.o test-rate

